package com.xiaoq.parking.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.alibaba.dubbo.config.annotation.Service;
import com.xiaoq.parking.entity.ParkingRecordEntity;
import com.xiaoq.parking.repository.IParkingRecordRepository;
import com.xiaoq.parking.service.IParkingRecordService;

@Service
public class ParkingRecordServiceImpl implements IParkingRecordService {
	
	@Autowired
	private IParkingRecordRepository parkingRecRep;

	@Override
	public ParkingRecordEntity addParkingRecord(ParkingRecordEntity parkingRecord) {
		return parkingRecRep.addParkingRecord(parkingRecord);
	}

	@Override
	public ParkingRecordEntity updateParkingRecord(ParkingRecordEntity parkingRecord) {
		return parkingRecRep.updateParkingRecord(parkingRecord);
	}

	@Override
	public boolean deleteParkingRecord(String parkingRecId) {
		return parkingRecRep.deleteParkingRecord(parkingRecId);
	}

	@Override
	public List<ParkingRecordEntity> parkingRecordList(String userId) {
		return parkingRecRep.parkingRecordList(userId);
	}

	@Override
	public ParkingRecordEntity parkingRecordDetail(String id) {
		return parkingRecRep.parkingRecordDetail(id);
	}

}
